﻿using System;

namespace TypeBuilderFx.Core.Emitters
{
    /// <summary>Options for <see cref="AdapterEmitter"/>.</summary>
    public class AdapterOptions : SupportAdapteeTypeEmitterOptions
    {
        #region object Methods
        /// <summary>Must be overriden by derived classes in order to be able to use as a key in an dictionary.</summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        /// <summary>Must be overriden by derived classes in order to be able to use as a key in an dictionary.</summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            AdapterOptions options = obj as AdapterOptions;

            return base.Equals(obj) && options != null;
        }
        #endregion
    }
}